FROM python:3.6-slim
WORKDIR /data/Scripts
RUN sed -i 's/http\:\/\/deb.debian.org/https\:\/\/mirrors.aliyun.com/g' /etc/apt/sources.list \
 && sed -i 's/http\:\/\/security.debian.org/https\:\/\/mirrors.aliyun.com/g' /etc/apt/sources.list \
 && apt-get install apt-transport-https\
 && apt update \
 && apt install -y  gcc python-dev supervisor\
 && rm -rf /var/lib/apt/lists/*
ADD ./requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir  -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r /tmp/requirements.txt \
 && rm -rf /tmp/requirements.txt

